package com.easy.util;

public class Page {
    private Integer current = 1;  // 默认第一页
    private Integer limit = 10;   // 默认每页10条
    private Integer start;
    private Integer count;
    private Object data;

    public Integer getStart() {
        return (current - 1) * limit;
    }

    // 添加完整的getter和setter
    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}